package com.dgut.pojo;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@IdClass(RecordRelationPK.class)
public class Record {
    /**
     * 用户id
     */
    @Id
    private Long id;

    /**
     * 打卡时间
     */
    @Id
    private Date time;

    /**
     * 行程是否异常
     */
    @Column(nullable = false)
    private int journey;

    /**
     * 接触史
     */
    @Column(nullable = false)
    private int contact;

    /**
     * 填报地址
     */
    @Column(nullable = false)
    private String address;

    /**
     * 体温
     */
    @Column(nullable = false)
    private float temperature;
}
